CSS padding displays in FF and Chrome, but not in IE 8? [migrated]
Posted
by
bullitt five
on Pro Webmasters
See other posts from Pro Webmasters
or by bullitt five
Published on 2011-06-23T20:34:07Z
Indexed on
2011/06/24
0:31 UTC
Read the original article
Hit count: 167
I'm updating the CSS on a page design, trying to put borders around my images, with 7px of padding between the image and the border. It seems to be working fine in Firefox and Chrome, but IE displays the border directly against the image, with no padding. Any suggestions?
CSS code:
img.right {
float: right;
margin: 0px;
border: 1px solid #999;
padding: 7px;
margin-left: 10px;
margin-bottom: 5px;
}
HTML:
<img src="images/homepage_challengecoin.jpg" class="right">
© Pro Webmasters or respective owner